<template>
  <div>
   <div>
     <h4>请选择你喜欢的专栏</h4>
    <input type="checkbox" value="科幻" v-model="myarr">{{arr[0]}}
    <input type="checkbox" value="喜剧" v-model="myarr">{{arr[1]}}
    <input type="checkbox" value="动漫" v-model="myarr">{{arr[2]}}
    <input type="checkbox" value="冒险" v-model="myarr">{{arr[3]}}
    <input type="checkbox" value="科技" v-model="myarr">{{arr[4]}}
    <input type="checkbox" value="军事" v-model="myarr">{{arr[5]}}
    <input type="checkbox" value="娱乐" v-model="myarr">{{arr[6]}}
    <input type="checkbox" value="奇闻" v-model="myarr">{{arr[7]}}
   </div>
   <div>
    <ul>
      <li v-for="item in myarr" :key="item">{{item}}</li>
    </ul>
   </div>
  </div>
</template>

<script>
export default {
data(){
  return {
    arr :["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
    myarr:[]
  }
}
}
</script>

<style>

</style>